<?php

defined('PHPFOX') or exit('NO DICE!');
 
class User_Service_Abstractauction extends Phpfox_Service 
{
		
		/*
		*	GET ITEM  
		*/
		public function getItem($aParams=null)
		{
			if($aParams['module_item_type'] == 0){
				
				//$aGroup = Phpfox::getService('user')->getUser($aParams['module_item_id'], 'u.*');
				$aGroup = Phpfox::getService('user')->get($aParams['module_item_id'], true);
				
				if (!isset($aGroup['user_id']))
				{
					return false;
				}
				
				//Custom Theme 
				$iStyleId = 0; 
				if(isset($aGroup['designer_style_id']) && $aGroup['designer_style_id'] > 0){ 
					$iStyleId = $aGroup['designer_style_id']; 
				}
				
				return array( 
				
					'title' 			=> $aGroup['full_name'], 
					'url-name' 			=> $aGroup['user_name'], 
					'user_id' 			=> $aGroup['user_id'], 
					'url' 				=> Phpfox::getLib('url')->makeUrl($aGroup['user_name']),
					'url-products' 		=> Phpfox::getLib('url')->makeUrl($aGroup['user_name'].'.abstractstore'), 
					'url-auctions' 		=> Phpfox::getLib('url')->makeUrl($aGroup['user_name'].'.abstractauction'), 
					'image' 			=> '',
					
					'style_id' 			=> $iStyleId, 
				);
			}
			
		return false;
		}
		
		/*
		*	New Auction Notify Followers   
		*/
		public function newAuction($aParams=null)
		{
			
			
		return false;
		}
}
?>